<?php

namespace App\Model\Cocktail;

use Illuminate\Database\Eloquent\Model;

class Jiweijiu extends Model
{
  //
  public static function checkRepeat($name,$id=0)
  {
    return self::where('id','!=',$id)->where('name',$name)->count() > 0;
  }
}
